#!/bin/bash
# 软件列表配置文件
# 包含软件名称、描述和安装命令

# 软件列表
# # set_software_list <软件名>  \
#                     <检查特征>  \
#                     <描述>  \
#                     <官网>  \
#                     <指定要软件包下载地址>  \
#                     <下载文件md5>  \
#                     <安装命令>

set_software_list   "git"  \
                    "git" \
                    "版本控制器" \
                    "https://git-scm.com/downloads" \
                    "/"  \
                    "/"  \
                    "install_software_fun1"

set_software_list   "vim"  \
                    "vim" \
                    "神之编辑器vim" \
                    "https://www.vim.org/download.php" \
                    "/" \
                    "/" \
                    "install_software_fun2"

set_software_list   "nvim" \
                    "nvim"  \
                    "编辑器nvim"  \
                    "https://neovim.io/"  \
                    "/"  \
                    "install_software_fun2"

set_software_list   "helix" \
                    "hx" \
                    "后现代编辑器"  \
                    "https://helix-editor.cn/" \
                    "/" \
                    "/" \
                    "install_software_fun1"

set_software_list   "example" \
                    "testxx" \
                    "测试" \
                    "https://helix-editor.cn/" \
                    "/" \
                    "/" \
                    "add_path_env ~/.local/bin"


# #    / **  
# #    * 执行判断系统类型  
# #    */ 
function install_software_fun1() {
    xecho "DEBUG" "install_software_fun1"

}

function install_software_fun2() {
    xecho "DEBUG" "install_software_fun2"
}